﻿<Page
    x:Class="DataBindingExample.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:DataBindingExample"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}"
          d:DataContext="{local:ViewModel}">
    <Grid.RowDefinitions>
        <RowDefinition Height="1*"></RowDefinition>
        <RowDefinition Height="1*"></RowDefinition>
    </Grid.RowDefinitions>
    <local:CustomControl>
        <local:CustomControl.DataContext>
            <local:ViewModel/>
        </local:CustomControl.DataContext>
    </local:CustomControl>
    <local:CustomControl Grid.Row="1">
        <local:CustomControl.DataContext>
            <local:DependencyModel/>
        </local:CustomControl.DataContext>
    </local:CustomControl>
    </Grid>
</Page>
